/* ============================================================
   WebFilterDialog.css
   Standalone Filter Dialog Component Styles
   All classes prefixed with "wfd-"
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    --wfd-base-color: #2196f3;
    --wfd-base-highlight-color: #64b5f6;
    --wfd-base-light-color: #bbdefb;
    --wfd-base-dark-color: #1976d2;
    --wfd-base-pressed-color: #6ab8f7;
    --wfd-base-focused-color: #42a5f5;
    --wfd-base-invisible-color: rgba(33, 150, 243, 0);
    --wfd-base-foreground-color: #fff;
    --wfd-accent-color: #ff9800;
    --wfd-accent-light-color: #ffe0b2;
    --wfd-accent-dark-color: #f57c00;
    --wfd-accent-pressed-color: #ffb74d;
    --wfd-accent-invisible-color: rgba(255, 152, 0, 0);
    --wfd-accent-foreground-color: #222;
    --wfd-confirm-color: #7cb342;
    --wfd-confirm-pressed-color: #a2cc75;
    --wfd-alert-color: #c62828;
    --wfd-alert-pressed-color: #de5c5c;
    --wfd-color: #111;
    --wfd-reverse-color: #fff;
    --wfd-highlight-color: rgba(17, 17, 17, 0.54);
    --wfd-disabled-color: rgba(17, 17, 17, 0.38);
    --wfd-reverse-disabled-color: rgba(255, 255, 255, 0.38);
    --wfd-divider-color: #e2e2e2;
    --wfd-selected-background-color: #e0e0e0;
    --wfd-hovered-background-color: #eee;
    --wfd-header-background-color: #f5f5f5;
    --wfd-faded-color: #e1e1e1;
    --wfd-background-color: #fafafa;
    --wfd-alt-background-color: #f5f5f5;
    --wfd-reverse-background-color: #303030;
    --wfd-reverse-alt-background-color: #3a3a3a;
    --wfd-overlay-color: rgba(0, 0, 0, 0.03);
    --wfd-content-padding: 10px;
    --wfd-listitem-selected-background-color: #e0e0e0;
    --wfd-nav-width: 240px;
    --wfd-font-family: Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Overlay & Container ────────────────────────────────────── */
.wfd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: var(--wfd-font-family);
    overscroll-behavior: contain;
}

.wfd-container {
    background: var(--wfd-background-color);
    color: var(--wfd-color);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--wfd-font-family);
    border: 1px solid var(--wfd-divider-color);
    width: 85%;
    height: 85%;
    max-width: 1100px;
    max-height: 850px;
}

/* ── Header ─────────────────────────────────────────────────── */
.wfd-header {
    background: var(--wfd-header-background-color);
    padding: 10px 16px;
    font-size: 1.15rem;
    font-weight: 500;
    border-bottom: 1px solid var(--wfd-divider-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.wfd-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wfd-home-btn {
    background: var(--wfd-background-color);
    border: 1px solid var(--wfd-divider-color);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--wfd-highlight-color);
    transition: all 0.2s;
    font-family: inherit;
}

.wfd-nav-toggle {
    background: var(--wfd-background-color);
    border: 1px solid var(--wfd-divider-color);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--wfd-highlight-color);
    transition: all 0.2s;
    font-family: inherit;
}

.wfd-nav-toggle:hover {
    color: var(--wfd-base-color);
    border-color: var(--wfd-base-color);
}

.wfd-home-btn:hover {
    color: var(--wfd-base-color);
    border-color: var(--wfd-base-color);
}

/* ── History navigation buttons ─────────────────────────────── */
.wfd-history-btn {
    background: var(--wfd-background-color);
    border: 1px solid var(--wfd-divider-color);
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    color: var(--wfd-highlight-color);
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1;
}

.wfd-history-btn:hover:not(:disabled) {
    color: var(--wfd-base-color);
    border-color: var(--wfd-base-color);
    background: var(--wfd-alt-background-color);
}

.wfd-history-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.wfd-history-indicator {
    font-size: 0.72rem;
    color: var(--wfd-highlight-color);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    padding: 0 2px;
}

.wfd-header-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--wfd-highlight-color);
    line-height: 1;
    transition: color 0.2s;
    font-family: inherit;
}

.wfd-header-close:hover {
    color: var(--wfd-alert-color);
}

/* ── Body ───────────────────────────────────────────────────── */
.wfd-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ── Left Nav ───────────────────────────────────────────────── */
.wfd-nav {
    width: var(--wfd-nav-width);
    background: var(--wfd-alt-background-color);
    border-right: 1px solid var(--wfd-divider-color);
    flex-shrink: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 0;
    transition: width 0.2s ease, transform 0.2s ease;
}

.wfd-container.wfd-nav-collapsed .wfd-nav {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    border-right-width: 0;
    overflow: hidden;
}

.wfd-nav-group-label {
    padding: 16px 20px 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--wfd-highlight-color);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.wfd-nav-group-label.wfd-clickable {
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    border-left: 4px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wfd-nav-group-label.wfd-clickable:hover {
    color: var(--wfd-color);
    background-color: var(--wfd-hovered-background-color);
}

.wfd-nav-group-label.wfd-clickable.wfd-active {
    color: var(--wfd-base-color);
    border-left-color: var(--wfd-base-color);
    background-color: var(--wfd-listitem-selected-background-color);
}

.wfd-nav-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--wfd-color);
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    justify-content: space-between;
}

.wfd-nav-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wfd-nav-item i {
    color: var(--wfd-highlight-color);
    width: 16px;
    text-align: center;
}

.wfd-nav-item:hover {
    background-color: var(--wfd-hovered-background-color);
}

.wfd-nav-item.wfd-active {
    background-color: var(--wfd-listitem-selected-background-color);
    border-left-color: var(--wfd-base-color);
    font-weight: 500;
}

.wfd-nav-item.wfd-active i {
    color: var(--wfd-base-color);
}

.wfd-nav-item-sub {
    padding-left: 46px;
    font-size: 0.9rem;
}

.wfd-nav-badge {
    background-color: var(--wfd-base-light-color);
    color: var(--wfd-base-dark-color);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.wfd-nav-badge.wfd-empty {
    display: none;
}

/* ── Right Editor Area ──────────────────────────────────────── */
.wfd-editor {
    flex: 1;
    padding: var(--wfd-content-padding);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--wfd-background-color);
    min-height: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.wfd-footer {
    padding: 10px 16px;
    background: var(--wfd-header-background-color);
    border-top: 1px solid var(--wfd-divider-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.wfd-btn {
    padding: 8px 18px;
    border: 1px solid var(--wfd-divider-color);
    background: var(--wfd-background-color);
    color: var(--wfd-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wfd-btn:hover {
    background: var(--wfd-hovered-background-color);
}

.wfd-btn-primary {
    background: var(--wfd-base-color);
    color: var(--wfd-base-foreground-color);
    border-color: var(--wfd-base-dark-color);
}

.wfd-btn-primary:hover {
    background: var(--wfd-base-pressed-color);
}

.wfd-btn-secondary {
    background: rgba(33, 150, 243, 0.08);
    color: var(--wfd-base-dark-color);
    border-color: var(--wfd-base-light-color);
}

.wfd-btn-secondary:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: var(--wfd-base-color);
}

.wfd-btn-danger {
    color: var(--wfd-alert-color);
    border-color: transparent;
    background: transparent;
}

.wfd-btn-danger:hover {
    color: var(--wfd-alert-pressed-color);
    background: transparent;
}

/* ── Editor Header ───────────────────────────────────────────── */
.wfd-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--wfd-faded-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    gap: 12px;
}

.wfd-editor-header.wfd-multiline {
    flex-direction: column;
    align-items: flex-start;
}

.wfd-editor-title {
    font-size: 1.4rem;
    color: var(--wfd-base-dark-color);
    font-weight: 600;
    margin: 0;
}

.wfd-editor-quick-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.wfd-editor-header:not(.wfd-multiline) .wfd-editor-quick-actions {
    width: auto;
    justify-content: flex-end;
}

.wfd-editor-selection-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wfd-editor-search-group {
    display: flex;
    align-items: center;
}

.wfd-editor-quick-actions .wfd-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ── Form Controls ───────────────────────────────────────────── */
.wfd-control-group {
    margin-bottom: 20px;
}

.wfd-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.wfd-check-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    padding: 12px 16px;
    border: 1px solid var(--wfd-divider-color);
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s;
}

.wfd-check-item:hover {
    border-color: var(--wfd-base-light-color);
    background: var(--wfd-hovered-background-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wfd-check-item.wfd-selected {
    border-color: var(--wfd-base-color);
    background: rgba(33, 150, 243, 0.05);
}

.wfd-check-item input[type="checkbox"],
.wfd-check-item input[type="radio"] {
    accent-color: var(--wfd-base-color);
    cursor: pointer;
    margin-top: 2px;
    margin-right: 10px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Ghost Items ─────────────────────────────────────────────── */
.wfd-check-item.wfd-ghost {
    opacity: 0.55;
    background: #fafafa;
    border-style: dashed;
    cursor: not-allowed;
}

.wfd-check-item.wfd-ghost:hover {
    background: #fafafa;
    border-color: var(--wfd-divider-color);
    box-shadow: none;
}

.wfd-check-item.wfd-ghost input[type="checkbox"] {
    cursor: not-allowed;
    pointer-events: none;
}

.wfd-check-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wfd-ghost-hint {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

/* ── Period Layout ───────────────────────────────────────────── */
.wfd-period-layout {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 16px;
}

.wfd-period-year-col {
    min-width: 196px;
    background: #fff;
    border: 1px solid var(--wfd-divider-color);
    border-radius: 6px;
    padding: 10px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.wfd-period-year-header {
    font-size: 1.05rem;
    font-weight: bold;
    border-bottom: 2px solid var(--wfd-divider-color);
    padding-bottom: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.wfd-period-quarter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 6px;
}

.wfd-period-quarter-header {
    font-weight: 600;
    color: var(--wfd-base-dark-color);
    display: flex;
    align-items: center;
    width: 44px;
    flex-shrink: 0;
    margin: 0;
    padding-top: 3px;
    font-size: 0.88rem;
}

.wfd-period-months-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.wfd-period-month-item {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    padding: 7px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background 0.15s, border-color 0.15s;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wfd-period-month-item input[type="checkbox"] {
    flex-shrink: 0;
    margin-right: 5px;
    margin-top: 0;
    accent-color: var(--wfd-base-color);
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.wfd-period-month-item:hover {
    background: var(--wfd-hovered-background-color);
    border-color: var(--wfd-divider-color);
}

.wfd-period-month-item.wfd-selected {
    background: rgba(33, 150, 243, 0.07);
    border-color: var(--wfd-base-color);
    font-weight: 500;
}

.wfd-period-check-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
}

.wfd-period-check-label:hover {
    color: var(--wfd-base-color);
}

.wfd-period-check-label input[type="checkbox"] {
    accent-color: var(--wfd-base-color);
    cursor: pointer;
    margin-right: 6px;
    width: 15px;
    height: 15px;
}

/* ── Period Toolbar ──────────────────────────────────────────── */
.wfd-period-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--wfd-alt-background-color);
    border: 1px solid var(--wfd-divider-color);
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 12px;
    min-height: 32px;
    box-sizing: border-box;
}

.wfd-period-summary-wrap {
    font-size: 0.85rem;
    color: var(--wfd-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wfd-period-summary-wrap .wfd-period-label {
    font-weight: 600;
    color: var(--wfd-base-dark-color);
}

.wfd-period-summary-wrap .wfd-period-val {
    color: var(--wfd-color);
}

.wfd-period-quick-actions-wrap {
    display: flex;
    gap: 6px;
}

.wfd-period-quick-actions-wrap .wfd-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    height: 26px;
}

/* ── Overview Dashboard ──────────────────────────────────────── */
.wfd-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.wfd-overview-card {
    border: 1px solid var(--wfd-divider-color);
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.wfd-overview-card:hover {
    border-color: var(--wfd-base-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.wfd-overview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--wfd-divider-color);
    padding-bottom: 8px;
    color: var(--wfd-base-dark-color);
}

.wfd-overview-card-title {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wfd-overview-card-count {
    background: var(--wfd-base-light-color);
    color: var(--wfd-base-dark-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.wfd-overview-card-content {
    color: var(--wfd-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.wfd-overview-pill {
    display: inline-block;
    background: var(--wfd-alt-background-color);
    border: 1px solid var(--wfd-divider-color);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

/* ── Empty State ─────────────────────────────────────────────── */
.wfd-empty-state {
    color: var(--wfd-highlight-color);
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: var(--wfd-alt-background-color);
    border-radius: 6px;
    border: 1px dashed var(--wfd-divider-color);
}

/* ── Info Banner ─────────────────────────────────────────────── */
.wfd-info-banner {
    color: var(--wfd-highlight-color);
    font-size: 0.9rem;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--wfd-divider-color);
    border-radius: 6px;
    margin-bottom: 16px;
}

/* ── Search Box (compact, inside editor list) ────────────────── */
.wfd-search-compact-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.wfd-search-compact-input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid var(--wfd-divider-color);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.wfd-search-compact-input:focus {
    border-color: var(--wfd-base-color);
    box-shadow: 0 0 0 2px var(--wfd-base-light-color);
}

.wfd-search-compact-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wfd-highlight-color);
}

/* ── Header Search Box (in editor quick-actions) ─────────────── */
.wfd-header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--wfd-divider-color);
    border-radius: 20px;
    padding: 4px 10px 4px 32px;
    height: 32px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wfd-header-search-wrap:focus-within {
    border-color: var(--wfd-base-color);
    box-shadow: 0 0 0 2px var(--wfd-base-light-color);
}

.wfd-header-search-wrap .wfd-search-icon {
    position: absolute;
    left: 10px;
    color: var(--wfd-highlight-color);
    font-size: 0.85rem;
}

.wfd-header-search-wrap input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    width: 140px;
    padding: 0;
}

.wfd-header-search-wrap .wfd-search-count-badge {
    background: var(--wfd-alt-background-color);
    color: var(--wfd-highlight-color);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
}

/* ── Count Label ─────────────────────────────────────────────── */
.wfd-editor-count-label {
    font-size: 0.9rem;
    color: var(--wfd-highlight-color);
    display: flex;
    align-items: center;
    background: var(--wfd-alt-background-color);
    padding: 6px 12px;
    border-radius: 16px;
}

.wfd-editor-count-label b {
    color: var(--wfd-base-dark-color);
    margin: 0 4px;
}

/* ── Multi-find ──────────────────────────────────────────────── */
.wfd-multifind-search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.wfd-multifind-search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--wfd-faded-color);
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}

.wfd-multifind-search-input:focus {
    border-color: var(--wfd-base-color);
    box-shadow: 0 0 0 3px var(--wfd-base-light-color);
}

.wfd-multifind-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wfd-highlight-color);
    font-size: 1.2rem;
}

.wfd-multifind-selected-wrap {
    margin-bottom: 20px;
}

.wfd-multifind-selected-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--wfd-highlight-color);
    margin-bottom: 8px;
}

.wfd-multifind-pills {
    display: flex;
    flex-wrap: wrap;
}

.wfd-multifind-pill {
    cursor: default;
    background: var(--wfd-base-light-color);
    border-color: var(--wfd-base-highlight-color);
    color: var(--wfd-base-dark-color);
    font-weight: 500;
}

.wfd-multifind-pill i {
    transition: color 0.2s;
}

.wfd-multifind-pill:hover i {
    color: var(--wfd-alert-color) !important;
}

/* ── Nav Group ───────────────────────────────────────────────── */
.wfd-nav-group {
    /* grouping wrapper, no special style needed */
}

/* ── Overview card group sub-section label ───────────────────── */
.wfd-card-group-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}


.wfd-container .x-fa {
    font-style: normal;
    display: inline-block;
    text-align: center;
    line-height: 1;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.wfd-nav-warning {
    color: var(--wfd-accent-dark-color);
    font-size: 0.9rem;
    margin-left: auto;
}

.wfd-btn-primary:disabled {
    background: var(--wfd-disabled-color);
    border-color: var(--wfd-divider-color);
    color: var(--wfd-reverse-disabled-color);
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Responsive / touch layout ─────────────────────────────── */
.wfd-container.wfd-mobile-mode {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.wfd-mobile-mode .wfd-body {
    position: relative;
}

.wfd-mobile-mode .wfd-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: min(84vw, 320px);
    padding: 12px 0;
    border-right: 1px solid var(--wfd-divider-color);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.18);
    transform: translateX(-105%);
}

.wfd-mobile-mode.wfd-nav-open .wfd-nav {
    transform: translateX(0);
}

.wfd-mobile-mode.wfd-nav-open .wfd-body::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.28);
}

.wfd-mobile-mode .wfd-header {
    padding: 10px 12px;
}

.wfd-mobile-mode .wfd-header-left {
    min-width: 0;
}

.wfd-mobile-mode .wfd-header-left > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wfd-mobile-mode .wfd-nav-toggle,
.wfd-mobile-mode .wfd-home-btn,
.wfd-mobile-mode .wfd-header-close {
    min-width: 44px;
    min-height: 44px;
}

.wfd-mobile-mode .wfd-footer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
}

.wfd-mobile-mode .wfd-footer .wfd-btn {
    min-height: 44px;
    padding: 8px 12px;
}

.wfd-mobile-mode .wfd-editor {
    padding: 12px;
}

.wfd-mobile-mode .wfd-editor-header:not(.wfd-multiline),
.wfd-mobile-mode .wfd-editor-quick-actions,
.wfd-mobile-mode .wfd-editor-selection-group {
    flex-wrap: wrap;
}
